<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>肺炎疫情健康状况调查表</title>

    <!-- CSS -->

    <link rel="stylesheet" th:href="@{/css/style-main.css}">
    <link rel="stylesheet" th:href="@{/css/pintuer.css}">
    <!-- Javascript -->
    <script th:src="@{/js/jquery-1.11.1.min.js}"></script>
    <script th:src="@{/js/jquery.backstretch.min.js}"></script>
    <script th:src="@{/js/pintuer.js}"></script>
    <script th:src="@{/js/scripts.js}"></script>
</head>
<body>


<!-- 登陆 -->
<ul class="nav nav-inline nav-menu navbar-right">
    <li>
        <a class="" href="javascript:;">
            <span><img th:src="@{/images/logo2.jpg}" width="28" class="radius-circle"></span>
            [[${session.username}]]
            <span class="downward"></span>
        </a>
        <ul class="drop-menu">
            <li><a class="icon-user" target="_blank" href="javascript:;">修改资料</a></li>
            <li><a class="icon-key" target="_blank" href="javascript:;">修改密码</a></li>
            <li><a class="icon-exchange" target="_blank" href="javascript:;">注销</a></li>
        </ul>
    </li>
</ul>

<!-- 表单 -->
<div class="top-content">
    <div class="inner-bg">
        <div class="container">
            <div class="text">
                <h1><strong>学生信息填报表</strong></h1>
                <div class="description">
                    <p>
                        请如实完善相关信息！
                    </p>
                </div>
            </div>
            <div class="form-box">
                <div class="form-top radius">
                    <div class="form-top x8 x2-move">
                        <form th:action="@{/usermsg/submit}" method="post" onsubmit="submitUserMsg()">
<!--                            姓名-->
                            <div class="form-group margin-big-top">
                            <div class="label">
                                <label for="username">
                                    姓名</label>
                            </div>
                            <div class="field">
                                <input type="text" class="input" id="username" name="username"
                                       size="50" placeholder="你的真实姓名" data-validate="required:必填"/>
                            </div>
                        </div>
<!--                            用户ID-->
                            <div class="form-group margin-big-top">
                                <div class="label">
                                    <label for="username">
                                        用户ID</label>
                                </div>
                                <div class="field">
                                    <input type="text" class="input" id="userid" name="userid"
                                           size="50" placeholder="你的学号/工号" data-validate="required:必填"/>
                                </div>
                            </div>
<!--                            性别-->
                            <div class="form-group margin-big-top">
                                <div class="label">
                                    <label>
                                        性别</label>
                                </div>
                                <div class="field">
                                    <div class="button-group radio">
                                        <label class="button active">
                                            <input name="grend" value="男" checked="checked"
                                                   type="radio"><span class="icon icon-male" data-validate="radio:请选择你的性别"></span> 男
                                        </label>
                                        <label class="button">
                                            <input name="gender" value="女" type="radio"><span
                                                class="icon icon-female"></span> 女
                                        </label>
                                    </div>
                                </div>
                            </div>

<!--                            角色-->
                            <div class="form-group margin-big-top">
                                <div class="label">
                                    <label>
                                        您的身份</label>
                                </div>
                                <div class="field">
                                    <div class="button-group radio">
                                        <label class="button active">
                                            <input name="role" value="stu" checked="checked"
                                                   type="radio"><span class="icon icon-male" data-validate="radio:请选择你的身份"></span> 学生
                                        </label>
                                        <label class="button">
                                            <input name="role" value="ter" type="radio"><span
                                                class="icon icon-female"></span> 老师
                                        </label>
                                    </div>
                                </div>
                            </div>
<!--                            年龄-->
                            <div class="form-group margin-big-top">
                                <div class="label">
                                    <label for="username">
                                        年龄</label>
                                </div>
                                <div class="field">
                                    <input type="number" class="input" id="age" name="age" size="50"
                                           placeholder="你的年龄"
                                           data-validate="required:必填,number:年龄只能填写数字,compare#<150:年龄介于0-150之间,compare#>0:年龄介于0-150之间"/>
                                </div>
                            </div>
                            <div class="form-group margin-big-top">
                                <div class="label">
                                    <label for="age">
                                        班级</label>
                                </div>
                                <div class="field">
                                    <select class="input" name="clano" data-validate="required:请选择班级">
                                        <option value="DX171">电信171</option>
                                        <option value="JSJ171">计算机171</option>
                                        <option value="JSJ172">计算机172</option>
                                        <option value="RJ171">软件171</option>
                                    </select>
                                </div>
                            </div>
<!--                            宿舍-->
                            <div class="form-group margin-big-top">
                                <div class="label">
                                    <label for="age">
                                        宿舍</label>
                                </div>
                                <div class="field">
                                    <select class="input" name="dormitory" data-validate="required:请选择宿舍">
                                        <option value="李一120">李一120</option>
                                        <option value="李二620">李二620</option>
                                        <option value="李三621">李三621</option>
                                        <option value="李四320">李四320</option>
                                    </select>
                                </div>
                            </div>
<!--                            邮箱-->
                            <div class="form-group margin-big-top">
                                <div class="label">
                                    <label for="username">
                                        邮箱</label>
                                </div>
                                <div class="field">
                                    <input type="email" class="input" th:value="${session.email}" name="email" size="50"
                                           placeholder="你的邮箱，请保持与注册邮箱一致！" data-validate="required:必填,email:邮箱格式错误！"/>
                                </div>
                            </div>

                            <div class="form-group margin-big-top">
                                <div class="label">
                                    头像
                                </div>
                                <div class="field">
                                    <a class="button input-file" href="javascript:void(0);">+ 浏览文件<input
                                            size="100" type="file"/></a>
                                </div>
                            </div>


                            <div class="form-button text-center">
                                <button class="button" type="submit">
                                    提交
                                </button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--底部-->
    <div class="container-layout">
        <div class="border-top">
            <div class="text-center">
                <ul class="nav nav-inline">
                    <li class="active"><a href="#">网站首页</a></li>
                    <li><a href="#">新闻资讯</a></li>
                    <li><a href="#">产品中心</a></li>
                    <li><a href="#">技术反馈</a></li>
                    <li><a href="#">留言反馈</a></li>
                    <li><a href="#">联系方式</a></li>
                </ul>
            </div>
            <div class="text-center height-big">
                版权所有 Pintuer.com All Rights Reserved，图ICP备：380959609
            </div>
        </div>
    </div>
</div>
</body>

<script>
    function submitUserMsg() {
        alert('用户信息提交成功！');
    }
</script>
</html>